package com.ly.common.core.bean.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 角色首页-dto
 *
 * @author luoyun
 * @Date: 2025/5/14 21:54
 * @Note:
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Schema(description = "角色首页入参")
public class SysRoleIndexDTO {

    @NotEmpty(message = "角色编码不能为空")
    @Schema(description = "角色编码")
    private String roleCode;

    @NotNull(message = "路由地址不能为空")
    @Schema(description = "路由地址")
    private java.lang.String url;

    @Schema(description = "状态")
    private java.lang.String status;

    @Schema(description = "优先级")
    private java.lang.Integer priority;
}
